<?php
class UserModel extends CActiveRecord {

	public static function tableName() {
		
		return 'user';
	} 
	
	public static function model($className = __CLASS__) {
		
		return parent::model(self::tableName());
	}
	
	public function getall($params) {
		
		return UserModel::model()->findAll($params);
	}
}